<?php
/**
 * User roles and methods concerning these roles.
 * @author jan
 */
class UserRole {
	
    public static $user = 'user';
	public static $org = 'org';
	public static $admin = 'admin';
	
	public static function getUserRole() {
		$role = UserRole::$user;
		$sessionData = SessionData::instance();
		if ($person['id'] != $sessionData->getAuthUser('id')) {
			if ($sessionData->getAuthUser('is_admin')) {
				$role = UserRole::$admin;
			}
			else {
				$role = UserRole::$org;
			}
		}
		return $role;
	}
}
